package com.lion.appletrip.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class PreferenceUtils
{
	public static  boolean getGuide(Context context)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.THEME_MODE,0);
		boolean isGuide = sp.getBoolean("Guide", false);
		return isGuide;
	}
	public static void setGuide(Context context,boolean isGuide)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.THEME_MODE,0);
		Editor edit = sp.edit();
		edit.putBoolean("Guide",isGuide);
		edit.commit();
	}
	public static  boolean getLogin(Context context)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.LOGINDATA,0);
		boolean isGuide = sp.getBoolean("Login", false);
		return isGuide;
	}
	public static void setLogin(Context context,boolean isGuide)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.LOGINDATA,0);
		Editor edit = sp.edit();
		edit.putBoolean("Login",isGuide);
		edit.commit();
	}
	public static  boolean getBomb(Context context)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.BOMB,0);
		boolean isGuide = sp.getBoolean("Bomb", false);
		return isGuide;
	}
	public static void setBomb(Context context,boolean isGuide)
	{
		SharedPreferences sp = context.getSharedPreferences(ConstantsCustomer.BOMB,0);
		Editor edit = sp.edit();
		edit.putBoolean("Bomb",isGuide);
		edit.commit();
	}
	
}
